package com.zero2oneit.mall.system.monitor.controller;

import com.zero2oneit.mall.common.monitor.Server;
import com.zero2oneit.mall.common.utils.R;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 服务器监控
 */
@Controller
public class ServerController {

    @RequestMapping("/monitor/server")
    @ResponseBody
    public R server() throws Exception {//VO : value-object 值对象
        Server server = new Server();
        server.copyTo();
        return R.ok("操作成功", server);
    }

}
